﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Donwu
    {
        private int leg;//腿
        public int Leg //腿的属性
        {
            get { return this.leg; }
            set { this.leg = value; }
        }
        public void Chi()
        {
            Console.WriteLine("我能吃");
        }
        public void Zholu()
        {
            Console.WriteLine("我能走路");
        }
        public void Shuijiao()
        {
            Console.WriteLine("我能睡觉");
        }
        public virtual void Jiao()
        {
            Console.WriteLine("我会叫");
        }

    }
}
